import request from '@/utils/request'

// 查询学生选课列表
export function listStutopic(query) {
  return request({
    url: '/stutopic/stutopic/list',
    method: 'get',
    params: query
  })
}

// 查询学生选课详细
export function getStutopic(studentId) {
  return request({
    url: '/stutopic/stutopic/' + studentId,
    method: 'get'
  })
}

// 新增学生选课
export function addStutopic(data) {
  return request({
    url: '/stutopic/stutopic',
    method: 'post',
    data: data
  })
}

// 修改学生选课
export function updateStutopic(data) {
  return request({
    url: '/stutopic/stutopic',
    method: 'put',
    data: data
  })
}

// 删除学生选课
export function delStutopic(studentId) {
  return request({
    url: '/stutopic/stutopic/' + studentId,
    method: 'delete'
  })
}

// 查询所有课程
export function courseListAll(query) {
  return request({
    url: '/coursedesign/course_message/listAll',
    method: 'get',
    params: query
  })
}
